<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/18
 * Time: 8:31
 */
class Circle
{
    private  $r;
    public function toString()
    {
        return 'circle.r='.$this->r;
    }
    public function __construct($r)
    {
        $this->r=$r;
    }
    public function __call($methodname, $args)
    {
        // TODO: Implement __call() method.
        die("难受啊马飞".$methodname."55开");
    }

    public function __clone()
    {
        // TODO: Implement __clone() method.
        $this->r=10;
    }
    public function getArea(){

    }
}
$c=new Circle(3);
echo $c;
print $c;
$e=$c->getArea2();
//$d=$c;
//$cc=clone $c;
//var_dump($c);
//var_dump($d);
//var_dump($cc);